package com.inexas.cu.server.core;

import javax.jdo.annotations.*;
import com.inexas.cu.stratus.*;

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
public class Person implements Entity {
	private static final long serialVersionUID = -1079139046016485161L;
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long ident;
	private String firstName, lastName;

	@SuppressWarnings("unused")
	private Person() {
		// Serialization
	}

	// todo First name, last name
	public Person(String firstName, String lastName) {
		this.firstName = firstName;
		this.lastName = lastName;
	}

	public Long getIdent() {
		return ident;
	}

	public String getFirstName() {
		return firstName;
	}

	public String getLastName() {
		return lastName;
	}
}
